<?php

/**
 * common actions.
 *
 * @package    anchor
 * @subpackage common
 * @author     Your name here
 * @version    SVN: $Id: actions.class.php 23810 2009-11-12 11:07:44Z Kris.Wallsmith $
 */
class commonActions extends myActions
{
	/**
	 * Method to display main page
	 * @param sfWebRequest $request
	 */
  public function executeIndex(sfWebRequest $request)
  {
  	// Get project table
    $table = Doctrine::getTable('project');
    // Get projects list
    $this->projects = $table->getCompletedProjects(sfConfig::get('app_homepage_projects_count'));
    // Get calculation list
    $this->articles = $table->getCalculatedProjects(sfConfig::get('app_homepage_calculations_count'));
  }
  /**
   * Method to display page about project
   * @param sfWebRequest $request
   */
  public function executeAbout(sfWebRequest $request)
  {
  	$this->redirect("@aboutcommon?module=common&action=common");
  }
	/**
	 * Method to display page with contacts
	 * @param sfWebRequest $request
	 */
	public function executeContacts(sfWebRequest $request)
	{
  	$this->redirect("@contacts_project?module=common&action=contactsproject");		
	}
	/**
	 * Display contacts projecting ingeneer contacts
	 * @param $request
	 */
	public function executeContactsproject(sfWebRequest $request)
	{
		$this->setTemplate("contacts", "common");
	}
	/**
	 * Display mathematics engeneer contacts
	 * @param sfWebRequest $request
	 */
	public function executeContactscalculation(sfWebRequest $request)
	{
		$this->setTemplate("contacts", "common");
	
	}
	/**
	 * Display support contact screen
	 * @param sfWebRequest $request
	 */
	public function executeContactssupport(sfWebRequest $request)
	{
		$this->setTemplate("contacts", "common");
	
	}  
  
  /**
   * Method to display partners page
   * @param sfWebRequest $request
   */
  public function executePartners(sfWebRequest $request)
  {
    
  }  
  public function executeAboutcommon(sfWebRequest $request)
  {
  	
  }  
  public function executeAboutspecialization(sfWebRequest $request)
  {
    
  }  
  public function executeAboutlicense(sfWebRequest $request)
  {
    
  }  
}
